package com.lu.api.article;


import com.lu.api.article.demote.IApArticleClientDemote;
import com.lu.model.article.dto.ArticleDto;
import com.lu.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//文章feign接口
@FeignClient(value = "news-article", fallback = IApArticleClientDemote.class)
public interface IApArticleClient {


    /**
     * 调用阿里云第三方接口审核文章
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/article/save")
    ResponseResult saveArticle(@RequestBody ArticleDto dto);
}
